https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/local/CyberPanel/lib/python3.10/site-packages/cli4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/CyberPanel/lib/python3.10/site-packages/cli4/myyaml.py
""" helper functions for yaml usage """

class myyaml():
    """ myyaml """

    _yaml = None
    parser = None

    def __init__(self):
        """ __init__ """
        if not myyaml._yaml:
            try:
                import yaml
                myyaml._yaml = yaml
                myyaml.parser = yaml.parser
            except ImportError as e:
                raise ImportError from e

    def safe_load(self,value_string):
        """ safe_load() """
        return myyaml._yaml.safe_load(value_string)

    def safe_dump(self, results):
        """ safe_dump() """
        return myyaml._yaml.safe_dump(results)

https://t.me/RX1948 - 2025